const express = require('express')
const qs = require('querystring')
const app = express()
const bodyParser = require('body-parser')

app.use(bodyParser.urlencoded({extended:false}))
app.use(bodyParser.json())

// app.get('/login',(req,res) => {
//     console.log(req.query,11111);
//     res.send(req.query)
// })
// app.get('/login/:user/:age',(req,res) => {
//     console.log(req.params,11111);
//     res.send(req.params)
// })

app.post('/submit/info',(req,res) => {
    console.log(req.body)
    res.send(req.body) 
})

app.listen(3001,()=>{
    console.log('http://127.0.0.1:3001');
    
})
